'use strict';

angular.module('xuexibangApp')
	.factory('Klass', function($resource) {
		return $resource('/api/klasses/:id/:code', {
			id: '@_id'
		}, {
			get: {
				method: 'GET',
				params: {
					id: 'code'
				}
			}
		});
	});
